package com.qzsoft.zhjd.asphalt.modules.asphaltdataratio.mapper;

import java.util.List;
import java.util.Map;

import com.qzsoft.zhjd.asphalt.modules.asphaltdataratio.dto.AsphaltDataRatioDto;
import com.qzsoft.zhjd.asphalt.modules.asphaltdataratio.entity.AsphaltDataRatioEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * @ClassName AsphaltDataRatioMapper
 * @Description 沥青占比数据库接口
 * @author linhuawei
 * @since 2021-12-04
 */
@Mapper
public interface AsphaltDataRatioMapper extends BaseMapper<AsphaltDataRatioEntity> {

    /**
     * @Title withinRatioPage
     * @Description 内掺配比分页
     * @param page   分页条件
     * @param params 查询条件
     * @return 内掺配比分页
     */
    IPage<AsphaltDataRatioDto> withinRatioPage(IPage<AsphaltDataRatioDto> page,
                                               @Param("params") Map<String, Object> params);

    /**
     * @Title outsideRatioData
     * @Description 外掺配比分页
     * @param page   分页条件
     * @param params 查询条件
     * @return 外掺配比分页
     */
    IPage<AsphaltDataRatioDto> outsideRatioData(IPage<AsphaltDataRatioDto> page,
            @Param("params") Map<String, Object> params);

    /**
     * @Title outsideRatioData
     * @Description 获取外掺配比列表
     * @param params
     * @return
     */
    List<AsphaltDataRatioDto> outsideRatioData(@Param("params")Map<String, Object> params);

}
